#include "Factory.h"

Tile TileFac(int x, int y, bool solid)
{
    TileDef tdef;
    tdef.SetVal("x", x);
    tdef.SetVal("y", y);
    tdef.SetVal("solid", solid);
    Tile t;
    t.init(tdef, img);
    return t;
}


Player PlayerFac(sf::Image& img, int x, int y, int rot)
{
    PlayerDef pdef;
    pdef.SetVal("x", x);
    pdef.SetVal("y", y);
    pdef.SetVal("rotation", rot);
    Player p;
    p.init(pdef);
    return p;
}
